<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>aws-crt-cpp: /home/ANT.AMAZON.COM/dengket/doc/aws-crt-cpp/include/aws/crt/Types.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">aws-crt-cpp
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_076842b242c291358044feb169933571.html">aws</a></li><li class="navelem"><a class="el" href="dir_cc4322e4b2151c90adb7cd2e3f54423a.html">crt</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">Types.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="Types_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * Licensed under the Apache License, Version 2.0 (the &quot;License&quot;).</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * You may not use this file except in compliance with the License.</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * A copy of the License is located at</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *  http://aws.amazon.com/apache2.0</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * or in the &quot;license&quot; file accompanying this file. This file is distributed</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * on an &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> * express or implied. See the License for the specific language governing</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * permissions and limitations under the License.</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="Exports_8h.html">aws/crt/Exports.h</a>&gt;</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="Optional_8h.html">aws/crt/Optional.h</a>&gt;</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="StlAllocator_8h.html">aws/crt/StlAllocator.h</a>&gt;</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160; </div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#include &lt;aws/common/common.h&gt;</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#include &lt;aws/io/socket.h&gt;</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &lt;aws/mqtt/mqtt.h&gt;</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160; </div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#include &lt;functional&gt;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#include &lt;list&gt;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &lt;map&gt;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &lt;sstream&gt;</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#include &lt;unordered_map&gt;</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &lt;utility&gt;</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160; </div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="keyword">struct </span>aws_allocator;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="keyword">struct </span>aws_byte_buf;</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="keyword">struct </span>aws_byte_cursor;</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="keyword">struct </span>aws_socket_options;</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160; </div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceAws.html">Aws</a></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;{</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <span class="keyword">namespace </span>Crt</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    {</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;        <span class="keyword">using</span> <a class="code" href="namespaceAws_1_1Crt.html#a3c9efb213e2de565038afcfd4f8afcda">Allocator</a> = aws_allocator;</div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="namespaceAws_1_1Crt.html#aa760a7d9714d6c28091c2b1cf7029876">   43</a></span>&#160;        <span class="keyword">using</span> <a class="code" href="namespaceAws_1_1Crt.html#aa760a7d9714d6c28091c2b1cf7029876">ByteBuf</a> = aws_byte_buf;</div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="namespaceAws_1_1Crt.html#a14ac076b0baa520bccb2b7236e4e78b7">   44</a></span>&#160;        <span class="keyword">using</span> <a class="code" href="namespaceAws_1_1Crt.html#a14ac076b0baa520bccb2b7236e4e78b7">ByteCursor</a> = aws_byte_cursor;</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160; </div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;        <span class="keyword">namespace </span>Io</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;        {</div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="namespaceAws_1_1Crt_1_1Io.html#a7e18a94cc1dada574dfe654349a94ec2">   48</a></span>&#160;            <span class="keyword">using</span> <a class="code" href="namespaceAws_1_1Crt_1_1Io.html#a7e18a94cc1dada574dfe654349a94ec2">IStream</a> = std::basic_istream&lt;char, std::char_traits&lt;char&gt;&gt;;</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;        } <span class="comment">// namespace Io</span></div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160; </div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;        <span class="keyword">namespace </span>Mqtt</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;        {</div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="namespaceAws_1_1Crt_1_1Mqtt.html#a73e44d9ab196e11a9732981690ac5423">   53</a></span>&#160;            <span class="keyword">using</span> <a class="code" href="namespaceAws_1_1Crt_1_1Mqtt.html#a73e44d9ab196e11a9732981690ac5423">QOS</a> = aws_mqtt_qos;</div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="namespaceAws_1_1Crt_1_1Mqtt.html#ac27f3ee931e088bb234da384b2a13617">   54</a></span>&#160;            <span class="keyword">using</span> <a class="code" href="namespaceAws_1_1Crt_1_1Mqtt.html#ac27f3ee931e088bb234da384b2a13617">ReturnCode</a> = aws_mqtt_connect_return_code;</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;        } <span class="comment">// namespace Mqtt</span></div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160; </div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;        <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt; <span class="keyword">class </span><a class="code" href="classAws_1_1Crt_1_1StlAllocator.html">StlAllocator</a>;</div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="namespaceAws_1_1Crt.html#a865381ab2bc5db45524fa6ce43c394c3">   58</a></span>&#160;        <span class="keyword">using</span> <a class="code" href="namespaceAws_1_1Crt.html#a865381ab2bc5db45524fa6ce43c394c3">String</a> = std::basic_string&lt;char, std::char_traits&lt;char&gt;, <a class="code" href="classAws_1_1Crt_1_1StlAllocator.html">StlAllocator&lt;char&gt;</a>&gt;;</div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="namespaceAws_1_1Crt.html#a4ac3c138d617fcbeba85074f442a3cae">   59</a></span>&#160;        <span class="keyword">using</span> <a class="code" href="namespaceAws_1_1Crt.html#a4ac3c138d617fcbeba85074f442a3cae">StringStream</a> = std::basic_stringstream&lt;char, std::char_traits&lt;char&gt;, <a class="code" href="classAws_1_1Crt_1_1StlAllocator.html">StlAllocator&lt;char&gt;</a>&gt;;</div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="namespaceAws_1_1Crt.html#a1cf42e328e4553fa884d30468915df73">   60</a></span>&#160;        <span class="keyword">template</span> &lt;<span class="keyword">typename</span> K, <span class="keyword">typename</span> V&gt; <span class="keyword">using</span> <a class="code" href="namespaceAws_1_1Crt.html#a1cf42e328e4553fa884d30468915df73">Map</a> = std::map&lt;K, V, std::less&lt;K&gt;, <a class="code" href="classAws_1_1Crt_1_1StlAllocator.html">StlAllocator&lt;std::pair&lt;const K, V&gt;</a>&gt;&gt;;</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;        <span class="keyword">template</span> &lt;<span class="keyword">typename</span> K, <span class="keyword">typename</span> V&gt;</div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="namespaceAws_1_1Crt.html#a5f9f20c733eb9d601dbc67b9dab81787">   62</a></span>&#160;        <span class="keyword">using</span> <a class="code" href="namespaceAws_1_1Crt.html#a5f9f20c733eb9d601dbc67b9dab81787">UnorderedMap</a> =</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;            std::unordered_map&lt;K, V, std::hash&lt;K&gt;, std::equal_to&lt;K&gt;, <a class="code" href="classAws_1_1Crt_1_1StlAllocator.html">StlAllocator&lt;std::pair&lt;const K, V&gt;</a>&gt;&gt;;</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;        <span class="keyword">template</span> &lt;<span class="keyword">typename</span> K, <span class="keyword">typename</span> V&gt;</div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="namespaceAws_1_1Crt.html#afa7b355655153ab380ab8e7a11e039aa">   65</a></span>&#160;        <span class="keyword">using</span> <a class="code" href="namespaceAws_1_1Crt.html#afa7b355655153ab380ab8e7a11e039aa">MultiMap</a> = std::multimap&lt;K, V, std::less&lt;K&gt;, <a class="code" href="classAws_1_1Crt_1_1StlAllocator.html">StlAllocator&lt;std::pair&lt;const K, V&gt;</a>&gt;&gt;;</div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="namespaceAws_1_1Crt.html#ac975615d2a9140660077ef7b264d9b6c">   66</a></span>&#160;        <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt; <span class="keyword">using</span> <a class="code" href="namespaceAws_1_1Crt.html#ac975615d2a9140660077ef7b264d9b6c">Vector</a> = std::vector&lt;T, StlAllocator&lt;T&gt;&gt;;</div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="namespaceAws_1_1Crt.html#a700a767e9c8e9c2564c37e379beb91a8">   67</a></span>&#160;        <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt; <span class="keyword">using</span> <a class="code" href="namespaceAws_1_1Crt.html#a700a767e9c8e9c2564c37e379beb91a8">List</a> = std::list&lt;T, StlAllocator&lt;T&gt;&gt;;</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160; </div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;        <a class="code" href="Exports_8h.html#a0a3f6c46aee6b588ce99a142cdb22d1d">AWS_CRT_CPP_API</a> <a class="code" href="namespaceAws_1_1Crt.html#a3c9efb213e2de565038afcfd4f8afcda">Allocator</a> *<a class="code" href="namespaceAws_1_1Crt.html#a70bd46137cf25dda46f2138ddbee9681">DefaultAllocator</a>() noexcept;</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;        <a class="code" href="Exports_8h.html#a0a3f6c46aee6b588ce99a142cdb22d1d">AWS_CRT_CPP_API</a> <a class="code" href="namespaceAws_1_1Crt.html#aa760a7d9714d6c28091c2b1cf7029876">ByteBuf</a> <a class="code" href="namespaceAws_1_1Crt.html#ab4ec1fe5917d6a2b63846a55269e2f77">ByteBufFromCString</a>(const <span class="keywordtype">char</span> *str) noexcept;</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;        <a class="code" href="Exports_8h.html#a0a3f6c46aee6b588ce99a142cdb22d1d">AWS_CRT_CPP_API</a> <a class="code" href="namespaceAws_1_1Crt.html#aa760a7d9714d6c28091c2b1cf7029876">ByteBuf</a> <a class="code" href="namespaceAws_1_1Crt.html#a70f8e3b2683b6280d49d29dd3b95f6e4">ByteBufFromEmptyArray</a>(const uint8_t *array, <span class="keywordtype">size_t</span> <a class="code" href="namespaceAws.html#aa8275fb544361b33cba071af3a547329">len</a>) noexcept;</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;        <a class="code" href="Exports_8h.html#a0a3f6c46aee6b588ce99a142cdb22d1d">AWS_CRT_CPP_API</a> <a class="code" href="namespaceAws_1_1Crt.html#aa760a7d9714d6c28091c2b1cf7029876">ByteBuf</a> <a class="code" href="namespaceAws_1_1Crt.html#af5947e810644fdc97d961ed6ab95fcaf">ByteBufFromArray</a>(const uint8_t *array, <span class="keywordtype">size_t</span> capacity) noexcept;</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;        <a class="code" href="Exports_8h.html#a0a3f6c46aee6b588ce99a142cdb22d1d">AWS_CRT_CPP_API</a> <a class="code" href="namespaceAws_1_1Crt.html#aa760a7d9714d6c28091c2b1cf7029876">ByteBuf</a> <a class="code" href="namespaceAws_1_1Crt.html#a1566d044dc5f9eddd4157198c1133653">ByteBufNewCopy</a>(<a class="code" href="namespaceAws_1_1Crt.html#a3c9efb213e2de565038afcfd4f8afcda">Allocator</a> *alloc, const uint8_t *array, <span class="keywordtype">size_t</span> <a class="code" href="namespaceAws.html#aa8275fb544361b33cba071af3a547329">len</a>);</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;        <a class="code" href="Exports_8h.html#a0a3f6c46aee6b588ce99a142cdb22d1d">AWS_CRT_CPP_API</a> <span class="keywordtype">void</span> <a class="code" href="namespaceAws_1_1Crt.html#ae01ece218af4b7f2b439b2fe81eaa972">ByteBufDelete</a>(<a class="code" href="namespaceAws_1_1Crt.html#aa760a7d9714d6c28091c2b1cf7029876">ByteBuf</a> &amp;);</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160; </div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;        <a class="code" href="Exports_8h.html#a0a3f6c46aee6b588ce99a142cdb22d1d">AWS_CRT_CPP_API</a> <a class="code" href="namespaceAws_1_1Crt.html#a14ac076b0baa520bccb2b7236e4e78b7">ByteCursor</a> <a class="code" href="namespaceAws_1_1Crt.html#a2f85138cf0101f40e9b22f52428b678a">ByteCursorFromCString</a>(const <span class="keywordtype">char</span> *str) noexcept;</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;        <a class="code" href="Exports_8h.html#a0a3f6c46aee6b588ce99a142cdb22d1d">AWS_CRT_CPP_API</a> <a class="code" href="namespaceAws_1_1Crt.html#a14ac076b0baa520bccb2b7236e4e78b7">ByteCursor</a> <a class="code" href="namespaceAws_1_1Crt.html#ae360efd16a3052b3ad45a9ce3d5549b2">ByteCursorFromByteBuf</a>(const <a class="code" href="namespaceAws_1_1Crt.html#aa760a7d9714d6c28091c2b1cf7029876">ByteBuf</a> &amp;) noexcept;</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;        <a class="code" href="Exports_8h.html#a0a3f6c46aee6b588ce99a142cdb22d1d">AWS_CRT_CPP_API</a> <a class="code" href="namespaceAws_1_1Crt.html#a14ac076b0baa520bccb2b7236e4e78b7">ByteCursor</a> <a class="code" href="namespaceAws_1_1Crt.html#a5541ef985f06959cac261a1d97513fb4">ByteCursorFromArray</a>(const uint8_t *array, <span class="keywordtype">size_t</span> <a class="code" href="namespaceAws.html#aa8275fb544361b33cba071af3a547329">len</a>) noexcept;</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160; </div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;        <a class="code" href="Exports_8h.html#a0a3f6c46aee6b588ce99a142cdb22d1d">AWS_CRT_CPP_API</a> <a class="code" href="namespaceAws_1_1Crt.html#ac975615d2a9140660077ef7b264d9b6c">Vector</a>&lt;uint8_t&gt; <a class="code" href="namespaceAws_1_1Crt.html#addde79a82884dd3374bfe47c1ec9e0ac">Base64Decode</a>(const <a class="code" href="namespaceAws_1_1Crt.html#a865381ab2bc5db45524fa6ce43c394c3">String</a> &amp;decode);</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;        <a class="code" href="Exports_8h.html#a0a3f6c46aee6b588ce99a142cdb22d1d">AWS_CRT_CPP_API</a> <a class="code" href="namespaceAws_1_1Crt.html#a865381ab2bc5db45524fa6ce43c394c3">String</a> <a class="code" href="namespaceAws_1_1Crt.html#a56e54aa8447e593fbcfc0c3c303db8ca">Base64Encode</a>(const <a class="code" href="namespaceAws_1_1Crt.html#ac975615d2a9140660077ef7b264d9b6c">Vector</a>&lt;uint8_t&gt; &amp;encode);</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160; </div>
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="namespaceAws_1_1Crt.html#a5e912a3a4aa95134bbc477dde8e5ea5c">   83</a></span>&#160;        template &lt;typename T&gt; <span class="keywordtype">void</span> <a class="code" href="namespaceAws_1_1Crt.html#a5e912a3a4aa95134bbc477dde8e5ea5c">Delete</a>(T *t, <a class="code" href="namespaceAws_1_1Crt.html#a3c9efb213e2de565038afcfd4f8afcda">Allocator</a> *allocator)</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;        {</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;            t-&gt;~T();</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;            aws_mem_release(allocator, t);</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;        }</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160; </div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="namespaceAws_1_1Crt.html#a73cd1bbefbe5b887eb3cfdb791ac8213">   89</a></span>&#160;        <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, <span class="keyword">typename</span>... Args&gt; T *<a class="code" href="namespaceAws_1_1Crt.html#a73cd1bbefbe5b887eb3cfdb791ac8213">New</a>(<a class="code" href="namespaceAws_1_1Crt.html#a3c9efb213e2de565038afcfd4f8afcda">Allocator</a> *allocator, Args &amp;&amp;... args)</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;        {</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;            T *t = <span class="keyword">reinterpret_cast&lt;</span>T *<span class="keyword">&gt;</span>(aws_mem_acquire(allocator, <span class="keyword">sizeof</span>(T)));</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;            <span class="keywordflow">if</span> (!t)</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;                <span class="keywordflow">return</span> <span class="keyword">nullptr</span>;</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">new</span> (t) T(std::forward&lt;Args&gt;(args)...);</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;        }</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160; </div>
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="namespaceAws_1_1Crt.html#a5fc09cfbc5a086a5fff17259564f1c47">   97</a></span>&#160;        <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, <span class="keyword">typename</span>... Args&gt; std::shared_ptr&lt;T&gt; <a class="code" href="namespaceAws_1_1Crt.html#a5fc09cfbc5a086a5fff17259564f1c47">MakeShared</a>(<a class="code" href="namespaceAws_1_1Crt.html#a3c9efb213e2de565038afcfd4f8afcda">Allocator</a> *allocator, Args &amp;&amp;... args)</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;        {</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;            T *t = <span class="keyword">reinterpret_cast&lt;</span>T *<span class="keyword">&gt;</span>(aws_mem_acquire(allocator, <span class="keyword">sizeof</span>(T)));</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;            <span class="keywordflow">if</span> (!t)</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;                <span class="keywordflow">return</span> <span class="keyword">nullptr</span>;</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;            <span class="keyword">new</span> (t) T(std::forward&lt;Args&gt;(args)...);</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160; </div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;            <span class="keywordflow">return</span> std::shared_ptr&lt;T&gt;(t, [allocator](T *obj) { <a class="code" href="namespaceAws_1_1Crt.html#a5e912a3a4aa95134bbc477dde8e5ea5c">Delete</a>(obj, allocator); });</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;        }</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160; </div>
<div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="namespaceAws_1_1Crt.html#aa8f82604df3f410e862691561154627e">  107</a></span>&#160;        <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt; <span class="keyword">using</span> <a class="code" href="namespaceAws_1_1Crt.html#aa8f82604df3f410e862691561154627e">ScopedResource</a> = std::unique_ptr&lt;T, std::function&lt;void(T *)&gt;&gt;;</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160; </div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;    } <span class="comment">// namespace Crt</span></div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;} <span class="comment">// namespace Aws</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="anamespaceAws_1_1Crt_html_a3c9efb213e2de565038afcfd4f8afcda"><div class="ttname"><a href="namespaceAws_1_1Crt.html#a3c9efb213e2de565038afcfd4f8afcda">Aws::Crt::Allocator</a></div><div class="ttdeci">aws_allocator Allocator</div><div class="ttdef"><b>Definition:</b> StlAllocator.h:25</div></div>
<div class="ttc" id="anamespaceAws_1_1Crt_html_a5fc09cfbc5a086a5fff17259564f1c47"><div class="ttname"><a href="namespaceAws_1_1Crt.html#a5fc09cfbc5a086a5fff17259564f1c47">Aws::Crt::MakeShared</a></div><div class="ttdeci">std::shared_ptr&lt; T &gt; MakeShared(Allocator *allocator, Args &amp;&amp;... args)</div><div class="ttdef"><b>Definition:</b> Types.h:97</div></div>
<div class="ttc" id="aOptional_8h_html"><div class="ttname"><a href="Optional_8h.html">Optional.h</a></div></div>
<div class="ttc" id="anamespaceAws_1_1Crt_html_ac975615d2a9140660077ef7b264d9b6c"><div class="ttname"><a href="namespaceAws_1_1Crt.html#ac975615d2a9140660077ef7b264d9b6c">Aws::Crt::Vector</a></div><div class="ttdeci">std::vector&lt; T, StlAllocator&lt; T &gt; &gt; Vector</div><div class="ttdef"><b>Definition:</b> Types.h:66</div></div>
<div class="ttc" id="anamespaceAws_1_1Crt_html_addde79a82884dd3374bfe47c1ec9e0ac"><div class="ttname"><a href="namespaceAws_1_1Crt.html#addde79a82884dd3374bfe47c1ec9e0ac">Aws::Crt::Base64Decode</a></div><div class="ttdeci">AWS_CRT_CPP_API Vector&lt; uint8_t &gt; Base64Decode(const String &amp;decode)</div><div class="ttdef"><b>Definition:</b> Types.cpp:56</div></div>
<div class="ttc" id="aExports_8h_html_a0a3f6c46aee6b588ce99a142cdb22d1d"><div class="ttname"><a href="Exports_8h.html#a0a3f6c46aee6b588ce99a142cdb22d1d">AWS_CRT_CPP_API</a></div><div class="ttdeci">#define AWS_CRT_CPP_API</div><div class="ttdef"><b>Definition:</b> Exports.h:34</div></div>
<div class="ttc" id="anamespaceAws_1_1Crt_html_a5f9f20c733eb9d601dbc67b9dab81787"><div class="ttname"><a href="namespaceAws_1_1Crt.html#a5f9f20c733eb9d601dbc67b9dab81787">Aws::Crt::UnorderedMap</a></div><div class="ttdeci">std::unordered_map&lt; K, V, std::hash&lt; K &gt;, std::equal_to&lt; K &gt;, StlAllocator&lt; std::pair&lt; const K, V &gt; &gt;&gt; UnorderedMap</div><div class="ttdef"><b>Definition:</b> Types.h:63</div></div>
<div class="ttc" id="anamespaceAws_1_1Crt_html_a5541ef985f06959cac261a1d97513fb4"><div class="ttname"><a href="namespaceAws_1_1Crt.html#a5541ef985f06959cac261a1d97513fb4">Aws::Crt::ByteCursorFromArray</a></div><div class="ttdeci">AWS_CRT_CPP_API ByteCursor ByteCursorFromArray(const uint8_t *array, size_t len) noexcept</div><div class="ttdef"><b>Definition:</b> Types.cpp:51</div></div>
<div class="ttc" id="anamespaceAws_1_1Crt_html_a1566d044dc5f9eddd4157198c1133653"><div class="ttname"><a href="namespaceAws_1_1Crt.html#a1566d044dc5f9eddd4157198c1133653">Aws::Crt::ByteBufNewCopy</a></div><div class="ttdeci">AWS_CRT_CPP_API ByteBuf ByteBufNewCopy(Allocator *alloc, const uint8_t *array, size_t len)</div><div class="ttdef"><b>Definition:</b> Types.cpp:37</div></div>
<div class="ttc" id="anamespaceAws_1_1Crt_html_ae360efd16a3052b3ad45a9ce3d5549b2"><div class="ttname"><a href="namespaceAws_1_1Crt.html#ae360efd16a3052b3ad45a9ce3d5549b2">Aws::Crt::ByteCursorFromByteBuf</a></div><div class="ttdeci">AWS_CRT_CPP_API ByteCursor ByteCursorFromByteBuf(const ByteBuf &amp;) noexcept</div><div class="ttdef"><b>Definition:</b> Types.cpp:49</div></div>
<div class="ttc" id="anamespaceAws_1_1Crt_1_1Io_html_a7e18a94cc1dada574dfe654349a94ec2"><div class="ttname"><a href="namespaceAws_1_1Crt_1_1Io.html#a7e18a94cc1dada574dfe654349a94ec2">Aws::Crt::Io::IStream</a></div><div class="ttdeci">std::basic_istream&lt; char, std::char_traits&lt; char &gt; &gt; IStream</div><div class="ttdef"><b>Definition:</b> Types.h:48</div></div>
<div class="ttc" id="anamespaceAws_1_1Crt_html_a14ac076b0baa520bccb2b7236e4e78b7"><div class="ttname"><a href="namespaceAws_1_1Crt.html#a14ac076b0baa520bccb2b7236e4e78b7">Aws::Crt::ByteCursor</a></div><div class="ttdeci">aws_byte_cursor ByteCursor</div><div class="ttdef"><b>Definition:</b> Types.h:44</div></div>
<div class="ttc" id="anamespaceAws_1_1Crt_html_ab4ec1fe5917d6a2b63846a55269e2f77"><div class="ttname"><a href="namespaceAws_1_1Crt.html#ab4ec1fe5917d6a2b63846a55269e2f77">Aws::Crt::ByteBufFromCString</a></div><div class="ttdeci">AWS_CRT_CPP_API ByteBuf ByteBufFromCString(const char *str) noexcept</div><div class="ttdef"><b>Definition:</b> Types.cpp:25</div></div>
<div class="ttc" id="anamespaceAws_1_1Crt_html_a4ac3c138d617fcbeba85074f442a3cae"><div class="ttname"><a href="namespaceAws_1_1Crt.html#a4ac3c138d617fcbeba85074f442a3cae">Aws::Crt::StringStream</a></div><div class="ttdeci">std::basic_stringstream&lt; char, std::char_traits&lt; char &gt;, StlAllocator&lt; char &gt; &gt; StringStream</div><div class="ttdef"><b>Definition:</b> Types.h:59</div></div>
<div class="ttc" id="anamespaceAws_1_1Crt_html_aa8f82604df3f410e862691561154627e"><div class="ttname"><a href="namespaceAws_1_1Crt.html#aa8f82604df3f410e862691561154627e">Aws::Crt::ScopedResource</a></div><div class="ttdeci">std::unique_ptr&lt; T, std::function&lt; void(T *)&gt; &gt; ScopedResource</div><div class="ttdef"><b>Definition:</b> Types.h:107</div></div>
<div class="ttc" id="anamespaceAws_1_1Crt_html_aa760a7d9714d6c28091c2b1cf7029876"><div class="ttname"><a href="namespaceAws_1_1Crt.html#aa760a7d9714d6c28091c2b1cf7029876">Aws::Crt::ByteBuf</a></div><div class="ttdeci">aws_byte_buf ByteBuf</div><div class="ttdef"><b>Definition:</b> Types.h:43</div></div>
<div class="ttc" id="anamespaceAws_1_1Crt_html_af5947e810644fdc97d961ed6ab95fcaf"><div class="ttname"><a href="namespaceAws_1_1Crt.html#af5947e810644fdc97d961ed6ab95fcaf">Aws::Crt::ByteBufFromArray</a></div><div class="ttdeci">AWS_CRT_CPP_API ByteBuf ByteBufFromArray(const uint8_t *array, size_t capacity) noexcept</div><div class="ttdef"><b>Definition:</b> Types.cpp:32</div></div>
<div class="ttc" id="anamespaceAws_1_1Crt_1_1Mqtt_html_ac27f3ee931e088bb234da384b2a13617"><div class="ttname"><a href="namespaceAws_1_1Crt_1_1Mqtt.html#ac27f3ee931e088bb234da384b2a13617">Aws::Crt::Mqtt::ReturnCode</a></div><div class="ttdeci">aws_mqtt_connect_return_code ReturnCode</div><div class="ttdef"><b>Definition:</b> Types.h:54</div></div>
<div class="ttc" id="anamespaceAws_1_1Crt_html_a700a767e9c8e9c2564c37e379beb91a8"><div class="ttname"><a href="namespaceAws_1_1Crt.html#a700a767e9c8e9c2564c37e379beb91a8">Aws::Crt::List</a></div><div class="ttdeci">std::list&lt; T, StlAllocator&lt; T &gt; &gt; List</div><div class="ttdef"><b>Definition:</b> Types.h:67</div></div>
<div class="ttc" id="anamespaceAws_1_1Crt_html_a73cd1bbefbe5b887eb3cfdb791ac8213"><div class="ttname"><a href="namespaceAws_1_1Crt.html#a73cd1bbefbe5b887eb3cfdb791ac8213">Aws::Crt::New</a></div><div class="ttdeci">T * New(Allocator *allocator, Args &amp;&amp;... args)</div><div class="ttdef"><b>Definition:</b> Types.h:89</div></div>
<div class="ttc" id="anamespaceAws_1_1Crt_html_a70bd46137cf25dda46f2138ddbee9681"><div class="ttname"><a href="namespaceAws_1_1Crt.html#a70bd46137cf25dda46f2138ddbee9681">Aws::Crt::DefaultAllocator</a></div><div class="ttdeci">AWS_CRT_CPP_API Allocator * DefaultAllocator() noexcept</div><div class="ttdef"><b>Definition:</b> Types.cpp:23</div></div>
<div class="ttc" id="anamespaceAws_html_aa8275fb544361b33cba071af3a547329"><div class="ttname"><a href="namespaceAws.html#aa8275fb544361b33cba071af3a547329">Aws::len</a></div><div class="ttdeci">char const int len</div><div class="ttdef"><b>Definition:</b> cJSON.cpp:1052</div></div>
<div class="ttc" id="anamespaceAws_1_1Crt_html_a2f85138cf0101f40e9b22f52428b678a"><div class="ttname"><a href="namespaceAws_1_1Crt.html#a2f85138cf0101f40e9b22f52428b678a">Aws::Crt::ByteCursorFromCString</a></div><div class="ttdeci">AWS_CRT_CPP_API ByteCursor ByteCursorFromCString(const char *str) noexcept</div><div class="ttdef"><b>Definition:</b> Types.cpp:47</div></div>
<div class="ttc" id="anamespaceAws_html"><div class="ttname"><a href="namespaceAws.html">Aws</a></div><div class="ttdef"><b>Definition:</b> Api.h:25</div></div>
<div class="ttc" id="aExports_8h_html"><div class="ttname"><a href="Exports_8h.html">Exports.h</a></div></div>
<div class="ttc" id="anamespaceAws_1_1Crt_html_afa7b355655153ab380ab8e7a11e039aa"><div class="ttname"><a href="namespaceAws_1_1Crt.html#afa7b355655153ab380ab8e7a11e039aa">Aws::Crt::MultiMap</a></div><div class="ttdeci">std::multimap&lt; K, V, std::less&lt; K &gt;, StlAllocator&lt; std::pair&lt; const K, V &gt; &gt;&gt; MultiMap</div><div class="ttdef"><b>Definition:</b> Types.h:65</div></div>
<div class="ttc" id="aStlAllocator_8h_html"><div class="ttname"><a href="StlAllocator_8h.html">StlAllocator.h</a></div></div>
<div class="ttc" id="anamespaceAws_1_1Crt_html_ae01ece218af4b7f2b439b2fe81eaa972"><div class="ttname"><a href="namespaceAws_1_1Crt.html#ae01ece218af4b7f2b439b2fe81eaa972">Aws::Crt::ByteBufDelete</a></div><div class="ttdeci">AWS_CRT_CPP_API void ByteBufDelete(ByteBuf &amp;)</div><div class="ttdef"><b>Definition:</b> Types.cpp:45</div></div>
<div class="ttc" id="aclassAws_1_1Crt_1_1StlAllocator_html"><div class="ttname"><a href="classAws_1_1Crt_1_1StlAllocator.html">Aws::Crt::StlAllocator</a></div><div class="ttdef"><b>Definition:</b> StlAllocator.h:29</div></div>
<div class="ttc" id="anamespaceAws_1_1Crt_html_a56e54aa8447e593fbcfc0c3c303db8ca"><div class="ttname"><a href="namespaceAws_1_1Crt.html#a56e54aa8447e593fbcfc0c3c303db8ca">Aws::Crt::Base64Encode</a></div><div class="ttdeci">AWS_CRT_CPP_API String Base64Encode(const Vector&lt; uint8_t &gt; &amp;encode)</div><div class="ttdef"><b>Definition:</b> Types.cpp:77</div></div>
<div class="ttc" id="anamespaceAws_1_1Crt_html_a865381ab2bc5db45524fa6ce43c394c3"><div class="ttname"><a href="namespaceAws_1_1Crt.html#a865381ab2bc5db45524fa6ce43c394c3">Aws::Crt::String</a></div><div class="ttdeci">std::basic_string&lt; char, std::char_traits&lt; char &gt;, StlAllocator&lt; char &gt; &gt; String</div><div class="ttdef"><b>Definition:</b> Types.h:58</div></div>
<div class="ttc" id="anamespaceAws_1_1Crt_html_a70f8e3b2683b6280d49d29dd3b95f6e4"><div class="ttname"><a href="namespaceAws_1_1Crt.html#a70f8e3b2683b6280d49d29dd3b95f6e4">Aws::Crt::ByteBufFromEmptyArray</a></div><div class="ttdeci">AWS_CRT_CPP_API ByteBuf ByteBufFromEmptyArray(const uint8_t *array, size_t len) noexcept</div><div class="ttdef"><b>Definition:</b> Types.cpp:27</div></div>
<div class="ttc" id="anamespaceAws_1_1Crt_1_1Mqtt_html_a73e44d9ab196e11a9732981690ac5423"><div class="ttname"><a href="namespaceAws_1_1Crt_1_1Mqtt.html#a73e44d9ab196e11a9732981690ac5423">Aws::Crt::Mqtt::QOS</a></div><div class="ttdeci">aws_mqtt_qos QOS</div><div class="ttdef"><b>Definition:</b> Types.h:53</div></div>
<div class="ttc" id="anamespaceAws_1_1Crt_html_a1cf42e328e4553fa884d30468915df73"><div class="ttname"><a href="namespaceAws_1_1Crt.html#a1cf42e328e4553fa884d30468915df73">Aws::Crt::Map</a></div><div class="ttdeci">std::map&lt; K, V, std::less&lt; K &gt;, StlAllocator&lt; std::pair&lt; const K, V &gt; &gt;&gt; Map</div><div class="ttdef"><b>Definition:</b> Types.h:60</div></div>
<div class="ttc" id="anamespaceAws_1_1Crt_html_a5e912a3a4aa95134bbc477dde8e5ea5c"><div class="ttname"><a href="namespaceAws_1_1Crt.html#a5e912a3a4aa95134bbc477dde8e5ea5c">Aws::Crt::Delete</a></div><div class="ttdeci">void Delete(T *t, Allocator *allocator)</div><div class="ttdef"><b>Definition:</b> Types.h:83</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
</html>
